﻿package cn.kxm.service;

import java.util.List;
import java.util.Map;

import cn.kxm.pojo.*;
public interface OutstorageBillService {

	public List<OutstorageBill> findAll(String code,String start,
			String end,String name,Integer page,Integer size);
	public List<OutstorageBill> findout(String code,String start,
			String end,String name);
	public int getCount(String code,String start,
			String end,String name);
	
	public OutstorageBill findByCode(String code);
	
	public List<Map<String, Object>> getPart(String code);
	public List<Map<String, Object>> getSellPart(String code);
	
	public int addoB(OutstorageBill o);
	public int addoBdetail(OutstorageBillDetail obdz);
	
	public int modifyoB(OutstorageBill o);
	public int modifyoBdetail(OutstorageBillDetail obd);
	
	public List<OutstorageBillDetail> getBycode(String code);
	
	public int deleteoB(String code);
	public int deleteoBdetail(String code);
	
	public List<Map<String, Object>> findsell(String code,String start,
			String end,String name,Integer page,Integer size);
	
	public int sellcount(String code,String name,String start,String end);
	
	public int updateStatus(Integer status,String code);
	public int updateOutstorage(Integer amount,Double sellPrice,String partCode);
	public int updateOnstorage(Integer amount,String partCode);
	public int updatesellorder(Integer outtype,String code);
	public boolean updateAll(Integer status,String code,Integer amount,
			Double sellPrice,String partCode,String sellcode);

	public int findoutstatus(String sellcode);

	public int findamount(String partCode);

}
